<h2 class="h2-title">Hỗ trợ trực tuyến !!!</h2>

<p><a href="<?=base_url()?>backend/cms/createsupport" class="bnt"style="margin-bottom: 15px;">Thêm mới</a></p>

<div class="clear"></div>
<?php if($this->native_session->flashdata('msg')):?>
    <ul class="notification succ">
        <li class="notifi_img"><img src="<?=base_url()?>assets/backend/css/images/icons/tick_circle.png"/></li>

        <li class="msg"><?=$this->native_session->flashdata('msg')?></li>

        <li class="close"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_grey_small.png"/></li>

    </ul><!--End of .notification -->
<?php endif?>

<table class="pretty">
                    <thead>
                        <tr>
                            <th>Tên</th>
                            <th>Yahoo</th>
                            <th>Facebook</th>
                            <th>Phone</th>
                            <th>Mail</th>
                            <th>Trạng thái</th>
                            <th>Sửa</th>
                            <th>Xoá</th>
                        </tr>
                    </thead>

                    <tbody>
                        <?php if(isset($msg)):?>
                            <td colspan="8"><?= $msg ?></td>
                        <?php else:?>
                            <?php foreach($supports as $support):?>
                                <tr>
                                <td><?=$support->support_name?></td>
                                <td><?=$support->support_yh?></td>
                                <td><?=$support->support_facebook?></td>
                                <td><?=$support->support_fone?></td>
                                <td><?=$support->support_mail?></td>
                                <?php if($support->support_status == 1):?>
                                    <td>Hiển thị</td>
                                <?php else:?>
                                    <td>Ẩn</td>
                                <?php endif;?>
                                <td>
                                    <a href="<?=base_url()?>backend/cms/editsupport/<?=$support->support_id?>" class="edit">
                                        <img src="<?=base_url()?>assets/backend/css/images/edit.png"/>
                                    </a>
                                </td>
                                <td>
                                    <a href="<?=base_url()?>backend/cms/delsupport/<?=$support->support_id?>" class="delete">
                                        <img src="<?=base_url()?>assets/backend/css/images/delete.png"/>
                                    </a>
                                </td>
                                </tr>
                            <?php endforeach;?>
                        <?php endif;?>
                    </tbody>
                </table>